Parse, don’t validate
Some other great aspects:
・ Zero dependencies
・Works in Node.js and all modern browsers
・Tiny: 8kb minified + zipped
・Immutable: methods (e.g. .optional()) return a new instance
・Concise, chainable interface
・Functional approach: parse, don't validate
・Works with plain JavaScript too! You don't need to use TypeScript.
hr.icon